package com.igame.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private Integer id;
    private String username;
    private String password;
    private String email;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate birth;
    private String address;
    private Integer age;
    private Integer state;
    private String AvatarPath;
    private Integer role;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate createTime;
}
